package me.jollyfly.jshop.content.server.dao;

import me.jollyfly.jshop.content.client.model.ContentDO;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.common.MySqlMapper;

import java.util.List;

/**
 * @author jollyfly
 */
@Repository
public interface ContentDAO extends Mapper<ContentDO>, MySqlMapper<ContentDO> {
    List<ContentDO> listContentByCat(Long catId);

    List<ContentDO> listContentByCode(String code);
}
